﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pout_Porri.Screens.Interface;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Pout_Porri.Utils;
using Pout_Porri.Levels;
using Pout_Porri.Objects.MetalSlug;

namespace Pout_Porri.Screens
{
    class MetalSlugScreen : Screen, IScreen
    {
        /// <summary>
        /// O desenho da fase (level design)
        /// </summary>
        Level level;

        /// <summary>
        /// Como passar de fase
        /// </summary>
        LevelManager levelManager;

        ContraGuy BillRiser;

        public MetalSlugScreen(Texture2D background, GameWindow gameWindow)
            : base(background)
        {
            this.background = background;
            this.gameWindow = gameWindow;
        }

        public override void load(ContentManager Content)
        {
            level = new Level(
                3, 
                new Vector2(GameConfig.GAME_WIDTH, GameConfig.GAME_HEIGHT), 
                Content,
                background);

             BillRiser = new ContraGuy(
                Content.Load<Texture2D>("Images\\BillRiser\\SuperCBillRizerSMBCSkin"), 
                new Vector2(100, 200), 
                new Vector2(300, 200));

            level.setPlayer(BillRiser);

            Tileset tileset = new Tileset(143, 12, 0);

            tileset.loadTexture("Images\\Scene\\sonicTileset", Content);

            level.setTileset(tileset);

            levelManager = new LevelManager();

            levelManager.setLevel(level);
        }

    }
}
